home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / mx / events / ResourceEvent.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  966 b   |  34 lines

  1. package mx.events
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.ProgressEvent;
  5.    import mx.core.mx_internal;
  6.    
  7.    use namespace mx_internal;
  8.    
  9.    public class ResourceEvent extends ProgressEvent
  10.    {
  11.       mx_internal static const VERSION:String = "3.0.0.0";
  12.       
  13.       public static const COMPLETE:String = "complete";
  14.       
  15.       public static const ERROR:String = "error";
  16.       
  17.       public static const PROGRESS:String = "progress";
  18.       
  19.       public var errorText:String;
  20.       
  21.       public function ResourceEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:uint = 0, param5:uint = 0, param6:String = null)
  22.       {
  23.          super(param1,param2,param3,param4,param5);
  24.          this.errorText = param6;
  25.       }
  26.       
  27.       override public function clone() : Event
  28.       {
  29.          return new ResourceEvent(type,bubbles,cancelable,bytesLoaded,bytesTotal,errorText);
  30.       }
  31.    }
  32. }
  33.  
  34.